package com.czkt.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.czkt.mapper.SsAuthorityRoleRelMapper;
import com.czkt.pojo.SsAuthorityRoleRel;
import com.czkt.service.SsAuthorityRoleRelService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public class SsAuthorityRoleRelServiceImpl extends ServiceImpl<SsAuthorityRoleRelMapper, SsAuthorityRoleRel> implements SsAuthorityRoleRelService {
    @Override
    public List<SsAuthorityRoleRel> getListByRid(Set<Long> rid) {
        LambdaQueryWrapper<SsAuthorityRoleRel> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(SsAuthorityRoleRel::getRoleId,rid);
        return baseMapper.selectList(queryWrapper);
    }
}
